package com.hs.entity;

import java.util.Date;
import java.util.List;

public class TbRole {
    private Integer id;

    private String name;

    private Date createTime;

    private Boolean delflag;

    private TbMenu tbMenu;

    private List<TbMenu> tbMenus;

    public List<TbMenu> getTbMenus() {
        return tbMenus;
    }

    public void setTbMenus(List<TbMenu> tbMenus) {
        this.tbMenus = tbMenus;
    }

    public TbMenu getTbMenu() {
        return tbMenu;
    }

    public void setTbMenu(TbMenu tbMenu) {
        this.tbMenu = tbMenu;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Boolean getDelflag() {
        return delflag;
    }

    public void setDelflag(Boolean delflag) {
        this.delflag = delflag;
    }

    @Override
    public String toString() {
        return "TbRole{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", createTime=" + createTime +
                ", delflag=" + delflag +
                ", tbMenu=" + tbMenu +
                ", tbMenus=" + tbMenus +
                '}';
    }
}